package com.foo.designpattern.bridge;

/**
 * com.foo.designpattern.bridge
 * Created with IntelliJ IDEA.
 * Created by jiang on 2016-05-05 20:49.
 *
 * @Description 抽象化(Abstraction)角色
 * 抽象化角色：抽象化给出的定义，并保存一个对实现化对象的引用。
 * 本类定义抽象类 Person, 维护一个指向实现化角色(Clothing)类型对象的引用。
 */

public abstract class Person {
    private Clothing clothing;
    private String type;

    public Clothing getClothing() {
        return clothing;
    }

    public void setClothing(Clothing clothing) {
        this.clothing = clothing;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public abstract void dress();
}
